<template>
  <div>
    <el-row class="tac">
      <el-col>
        <h2 style="color: #fff; margin: 25px 0">后台管理系统</h2>
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
          :collapse-transition="false"
        >
          <router-link to="/">
            <el-menu-item index="1">
              <span slot="title">首页</span>
            </el-menu-item>
          </router-link>
          <el-submenu index="2">
            <template slot="title">
              <span>用户信息</span>
            </template>
            <el-menu-item-group>
              <router-link to="/user">
                <el-menu-item index="1-1">个人信息</el-menu-item>
              </router-link>
              <router-link to="/users">
                <el-menu-item index="1-2">用户信息</el-menu-item>
              </router-link>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="3">
            <template slot="title">
              <span>职业管理</span>
            </template>
            <el-menu-item-group>
              <router-link to="/job/manage">
                <el-menu-item index="2-1">
                  <i class="el-icon-menu"></i>
                  职位列表
                </el-menu-item>
              </router-link>
            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-col>
    </el-row>
    <!-- <h3>{{ fz }}</h3> -->
    <!-- <button @click="tofather">向父级传值</button> -->
  </div>
</template>

<style scoped>
span {
  font-size: 20px !important;
}
</style>

<script>
export default {
  props: {
    fz: {
      type: String,
      required: true,
    },
  },
  methods: {
    // tofather(){
    //   this.$emit("tofa","this is child")
    // }
  },
};
</script>

